package com.codeduck.exception.controller;

import com.codeduck.exception.constant.ResponseStatus;
import com.codeduck.exception.exception.PermissionException;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: <a href="mailto:codeduck@163.com">Codeduck</a>
 * @createDate: 2021-12-26
 */
@RestController
public class IndexController {

    @GetMapping("/index")
    public void index() {
        throw new PermissionException(ResponseStatus.PERMISSION_ERROR);
    }
}
